<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>登录页面</title>
<style type="text/css">
/*登录页面样式*/
* {margin: 0px;padding: 0px;}
body{ background:url(${pageContext.request.contextPath}/images/login/login_bg.jpg) top repeat-x;}
body,td { font-size:12px; color:#3c3c3c; line-height:20px;}
.login_tab a:link{ color:#0877c9}
.login_tab a:hover{color:#fe7000}
.login_01{ margin:0 auto; width:491px; height:314px; background:url(${pageContext.request.contextPath}/images/login/login_whjz.png) top repeat-x; margin-top:213px;}
.login_tab{}
.jzmm{display: inline;
	float: left;
	margin-top: 5px; margin-right:5px;CURSOR: pointer;}
.login-input{ width:234px; height:28px; line-height:28px; padding:0 3px; border:0px;background:url(${pageContext.request.contextPath}/images/login/login_input.jpg) no-repeat;}
.loginBtnBg{ width:117px; height:37px; border:0px; background:url(${pageContext.request.contextPath}/images/login/dengl2.jpg) no-repeat;CURSOR: pointer;}
.loginBtnBg:hover{ width:117px; height:37px; border:0px; background:url(${pageContext.request.contextPath}/images/login/dengl.jpg) no-repeat;}
</style>
<script type="text/javascript">
	function trim(str){
		return str.replace(/(^\s+)|(\s+$)/g,"");
	}
	function login(){
		var name=trim(document.getElementById("userName").value);
		var password=trim(document.getElementById("password").value);
		if(name==""){
			alert("请输入用户名");
		}else if(password==""){
			alert("请输入密码");
		}else{
			document.getElementById("userName").value=name;
			document.getElementById("password").value=password;
			document.getElementById("form1").submit();
		}
	}
</script>
</head>
<body>
<div class="login_01">
<form id="form1" action="/rais/index/loginAction!doLogin?ssonum=dcfs" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_tab">
  <tr>
      <td height="90">&nbsp;</td>
      <td colspan="2"></td>
    </tr>
    <tr>
      <td width="30%" align="right" height="35">用户名：</td>
      <td width="70%" style="padding-left:10px;"><input type="text" id="userName" name="loginUser.userName" class="login-input" value="${loginUser.userName}"></td>
    </tr>
    <tr>
      <td align="right" height="55">密　码：</td>
      <td style="padding-left:10px;"><input type="password" id="password" name="loginUser.userPassword" class="login-input" value="" onkeyup="if(event.keyCode==13){login();}"></td>
      
    </tr>
	<tr>
		<td></td>
		<td><span style="color:red;">${errorMsg}</span></td>
	</tr>
    <tr>
      <td>&nbsp;</td>
      <td style="padding-left:10px; padding-top:15px;">
      <input type="button" id="submitBtn" class="loginBtnBg" value="" onclick="login();"></td>
      </tr>
  </table>
  </form>
</div>
</body>
</html>
